// pages/elderlyCare/elderlyCare.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
      newsList: [
          {
            id: 1,
            imageUrl: "https://img2.voc.com.cn/2021/01/11/2974958331094f638374890cb96ee562728e75af1610351564.jpg",
            title: "养老新模式，让老人安享晚年",
            description: "近年来，随着老龄化社会的到来，养老问题越来越受到关注。一种新的养老模式正在逐渐兴起..."
          },
          {
            id: 2,
            imageUrl: "https://ts3.tc.mm.bing.net/th/id/OIP-C.jTS5u8T__iobPuyHUAZG4gHaFJ?rs=1&pid=ImgDetMain&o=7&rm=3",
            title: "社区养老服务中心建设进展顺利",
            description: "我市社区养老服务中心建设正在有序推进，预计年底前将有多家中心投入使用..."
          }
        ],
        serviceList: [
          {
            id: 1,
            imageUrl: "https://ts2.tc.mm.bing.net/th/id/OIP-C.LayQqI2gvxhfKdob5m7TjAHaFj?rs=1&pid=ImgDetMain&o=7&rm=3",
            title: "专业护理服务",
            price: "5000"
          },
          {
            id: 2,
            imageUrl: "https://ts1.tc.mm.bing.net/th/id/R-C.536455d976a6776dab74f2b5f4d8ff02?rik=i1afVUuGKuiJxQ&riu=http%3a%2f%2fn.sinaimg.cn%2fsinakd20230307s%2f384%2fw2048h1536%2f20230307%2fabc6-2cae618fb29a58a7d5dcf86add4f7b5e.jpg&ehk=2p91zCT8KToErkXyc0Yq8uo2K%2fAPwB4OQka54VdTqBc%3d&risl=&pid=ImgRaw&r=0",
            title: "康复理疗服务",
            price: "3000"
          }
        ],
        postList: [
            {
              id: 1,
              imgUrl: "https://ts4.tc.mm.bing.net/th/id/OIP-C.C_HIQhMn7QEF9470A86ZDgHaEK?rs=1&pid=ImgDetMain&o=7&rm=3", // 本地图片路径，需放到项目的 images 目录；也可填网络图片地址
              title: "工作日去路易威登游轮，预约有点难",
              author: "XY821216",
              likeCount: 63
            },
            {
              id: 2,
              imgUrl: "https://ts3.tc.mm.bing.net/th/id/OIP-C.aRWPDplKNfmQECbLCBYY7AHaHq?rs=1&pid=ImgDetMain&o=7&rm=3",
              title: "一直不懂....",
              author: "人间小...",
              likeCount: 45
            },
            {
              id: 3,
              imgUrl: "https://ts2.tc.mm.bing.net/th/id/OIP-C.J6F-PbYsWm3K_RhrAXjV4wHaE7?rs=1&pid=ImgDetMain&o=7&rm=3",
              title: "周末去哪玩这是个问题",
              author: "儿童成长馆",
              likeCount: 100
            },
            {
              id: 4,
              imgUrl: "https://ts1.tc.mm.bing.net/th/id/OIP-C.YUxmcNdEPvJhWltGVHs6yQHaHa?rs=1&pid=ImgDetMain&o=7&rm=3",
              title: "Labubu家族全科普，这下",
              author: "潮玩达人",
              likeCount: 88
            },
            {
                id: 5,
                imgUrl: "https://ts4.tc.mm.bing.net/th/id/OIP-C.C_HIQhMn7QEF9470A86ZDgHaEK?rs=1&pid=ImgDetMain&o=7&rm=3", // 本地图片路径，需放到项目的 images 目录；也可填网络图片地址
                title: "工作日去路易威登游轮，预约有点难",
                author: "XY821216",
                likeCount: 63
              },
              {
                id: 6,
                imgUrl: "https://ts3.tc.mm.bing.net/th/id/OIP-C.aRWPDplKNfmQECbLCBYY7AHaHq?rs=1&pid=ImgDetMain&o=7&rm=3",
                title: "一直不懂....",
                author: "人间小...",
                likeCount: 45
              },
              {
                id: 7,
                imgUrl: "https://ts2.tc.mm.bing.net/th/id/OIP-C.J6F-PbYsWm3K_RhrAXjV4wHaE7?rs=1&pid=ImgDetMain&o=7&rm=3",
                title: "周末去哪玩这是个问题",
                author: "儿童成长馆",
                likeCount: 100
              },
              {
                id: 8,
                imgUrl: "https://ts1.tc.mm.bing.net/th/id/OIP-C.YUxmcNdEPvJhWltGVHs6yQHaHa?rs=1&pid=ImgDetMain&o=7&rm=3",
                title: "Labubu家族全科普，这下",
                author: "潮玩达人",
                likeCount: 88
              },
              {
                id: 1,
                imgUrl: "https://ts4.tc.mm.bing.net/th/id/OIP-C.C_HIQhMn7QEF9470A86ZDgHaEK?rs=1&pid=ImgDetMain&o=7&rm=3", // 本地图片路径，需放到项目的 images 目录；也可填网络图片地址
                title: "工作日去路易威登游轮，预约有点难",
                author: "XY821216",
                likeCount: 63
              },
              {
                id: 2,
                imgUrl: "https://ts3.tc.mm.bing.net/th/id/OIP-C.aRWPDplKNfmQECbLCBYY7AHaHq?rs=1&pid=ImgDetMain&o=7&rm=3",
                title: "一直不懂....",
                author: "人间小...",
                likeCount: 45
              },
              {
                id: 3,
                imgUrl: "https://ts2.tc.mm.bing.net/th/id/OIP-C.J6F-PbYsWm3K_RhrAXjV4wHaE7?rs=1&pid=ImgDetMain&o=7&rm=3",
                title: "周末去哪玩这是个问题",
                author: "儿童成长馆",
                likeCount: 100
              },
              {
                id: 4,
                imgUrl: "https://ts1.tc.mm.bing.net/th/id/OIP-C.YUxmcNdEPvJhWltGVHs6yQHaHa?rs=1&pid=ImgDetMain&o=7&rm=3",
                title: "Labubu家族全科普，这下",
                author: "潮玩达人",
                likeCount: 88
              },
              {
                  id: 5,
                  imgUrl: "https://ts4.tc.mm.bing.net/th/id/OIP-C.C_HIQhMn7QEF9470A86ZDgHaEK?rs=1&pid=ImgDetMain&o=7&rm=3", // 本地图片路径，需放到项目的 images 目录；也可填网络图片地址
                  title: "工作日去路易威登游轮，预约有点难",
                  author: "XY821216",
                  likeCount: 63
                },
                {
                  id: 6,
                  imgUrl: "https://ts3.tc.mm.bing.net/th/id/OIP-C.aRWPDplKNfmQECbLCBYY7AHaHq?rs=1&pid=ImgDetMain&o=7&rm=3",
                  title: "一直不懂....",
                  author: "人间小...",
                  likeCount: 45
                },
                {
                  id: 7,
                  imgUrl: "https://ts2.tc.mm.bing.net/th/id/OIP-C.J6F-PbYsWm3K_RhrAXjV4wHaE7?rs=1&pid=ImgDetMain&o=7&rm=3",
                  title: "周末去哪玩这是个问题",
                  author: "儿童成长馆",
                  likeCount: 100
                },
                {
                  id: 8,
                  imgUrl: "https://ts1.tc.mm.bing.net/th/id/OIP-C.YUxmcNdEPvJhWltGVHs6yQHaHa?rs=1&pid=ImgDetMain&o=7&rm=3",
                  title: "Labubu家族全科普，这下",
                  author: "潮玩达人",
                  likeCount: 88
                }
              
          ]
  
    },
  
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
  
    },
    goToElderlyHome: function() {
      wx.navigateTo({
        url: '/pages/elderlyHome/elderlyHome'
      });
    },
    goToHealthService: function() {
      wx.navigateTo({
        url: '/pages/healthService/healthService'
      });
    },
    goToLifeService: function() {
      wx.navigateTo({
        url: '/pages/lifeService/lifeService'
      });
    },
    goToCommunity: function() {
      wx.navigateTo({
        url: '/pages/community/community'
      });
    },
  
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {
  
    },
  
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {
  
    },
  
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {
  
    },
  
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {
  
    },
  
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {
  
    },
  
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {
  
    },
  
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {
  
    }
  })